<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
    [v-cloak] {
        display: none;
    }
    </style>
</head>
<body>
    <div id="app">
        <p v-cloak>{{ msg }}</p>
        <p>{{msg2}}</p>
        <p v-text="msg2"></p>
        <p v-html="msg2"></p>
        <p>=============={{msg}}===================</p>
        <p v-text="msg">----------------++++++++++++++++</p> 
        <!-- v-text 会覆盖 标签中原有的内容 -->
        <p v-text="msg + '123456'"></p>

        <p v-text="flage ? msg : msg2"></p>
    </div>
    <script src="./lib/vue.min-2.6.11.js"></script>
    <script>
    const vm = new Vue({
        el:'#app',
        data: {
            msg:'了了了了了了了了了了了了了了',
            msg2:'<h3> 这是h3标签</h3>',
            flage:true
        }
    })
    </script>
</body>
</html>